<template>
    <div class="tip" v-show="buffer.show">
        <div class="toast">
            <p>消息提示框</p>
            <div @click="buffer.show = false">
                <button>取消</button>
                <button>确定</button>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props: ['buffer'],
    setup(props) {

    }
};
</script>

<style scoped>
.tip {
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
}

.toast {
    width: 300px;
    height: 260px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
</style>
